/**
 * Created by baidm in 2022/5/11 on 20:46
 */

export const openWindow = (router, name) => {
    let {origin, pathname} = window.location
    let {href} = router.resolve({name})
    window.open(`${origin}${pathname}${href}`, "_blank")
}